#include<bits/stdc++.h>

using namespace std;
string text = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
string code = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ9876543210";

char f(char c) {
    int x = text.find(c);
    return code[x];
}

int main() {
    string s;
    cin >> s;
    transform(s.begin(), s.end(), s.begin(), f);
    cout << s;

    return 0;
}